'''
日程页面
 '''
from selenium.webdriver.common.by import By
from page.base_page import BasePage

class Tianjiarc(BasePage):
    url = 'http://192.168.1.25/crm/index.php?m=event&a=add'

    # 输入主题
    zhuti_locator = (By.CSS_SELECTOR, '#subject')
    # 点击保存
    baocun_locator = (By.CSS_SELECTOR,'body > div.container > div.row > div > form > table > tfoot > tr > td:nth-child(2) > input:nth-child(1)')

    def shuzhuti(self,zhuti):
        self.driver.find_element(*self.zhuti_locator).send_keys(zhuti)
    def dianbaocun(self):
        self.driver.find_element(*self.baocun_locator).click()